﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using Gean.Configuring.CoderSetting;

namespace Pansoft.HIME.Manager
{
    public class Options : XmlCoderSetting
    {
        private static readonly NLog.Logger _Logger = NLog.LogManager.GetCurrentClassLogger();

        #region 单件实例

        private static readonly Lazy<Options> _Instance = new Lazy<Options>(() => new Options());

        /// <summary> 获得一个本类型的单件实例.
        /// </summary>
        /// <value>The instance.</value>
        public static Options Instance
        {
            get { return _Instance.Value; }
        }

        /// <summary>是否计算页面执行时间
        /// </summary>
        public bool PageTimingEnabled { get; set; }

        #endregion

        #region Overrides of CoderSetting<XmlElement>

        /// <summary>从指定的源(一般是一个XmlElement，也可以是任何类型)载入本类型的各个属性值
        /// </summary>
        /// <param name="source">指定的源(一般是一个XmlElement)</param>
        protected override void Load(XmlElement source)
        {
        }

        #endregion
    }
}
